﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ForgetPassword.aspx.cs" Inherits="gamexpert.ForgetPassword" Theme="Black" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="forget">
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
    <MailDefinition BodyFileName="~/forgetPassEmail.txt" 
        From="tharlikar@gmail.com" Subject="[Notification]Password Recovery">
    </MailDefinition>
    <QuestionTemplate>
        <table border="0" cellpadding="1" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="left" colspan="2">
                                <h2>Identity Confirmation</h2></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                Answer the following question to receive your password.</td>
                        </tr>
                        <tr>
                            <td align="right">
                                User Name:</td>
                            <td>
                                <asp:Literal ID="UserName" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                Question:</td>
                            <td>
                                <asp:Literal ID="Question" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Answer:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                    ControlToValidate="Answer" ErrorMessage="Answer is required." 
                                    ToolTip="Answer is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" 
                                    ValidationGroup="PasswordRecovery1" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </QuestionTemplate>
    <UserNameTemplate>
        <table border="0" cellpadding="1" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="left" colspan="2">
                                <h2>Forgot Your Password?</h2></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                Enter your User Name to receive your password.</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                    ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                    ToolTip="User Name is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" 
                                    ValidationGroup="PasswordRecovery1" />
                            </td>
                        </tr>
                    </table>
                    
                </td>
            </tr>
        </table>
    </UserNameTemplate>
    <SuccessTemplate>
        <table border="0" cellpadding="1" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td>
                            <h2>Forget Password</h2>
                                Your password has been sent to your email account.</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </SuccessTemplate>
</asp:PasswordRecovery>
<p class="createuser pl200">
        <asp:HyperLink ID="lnkCreateNewUser" NavigateUrl="~/Login.aspx" runat="server">Go back to login.</asp:HyperLink>
    </p>
</div>
</asp:Content>

